package com.ibeeking.found.cop.b.rest.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ibeeking.found.cop.service.common.param.MsgKnowledgeParam;
import com.ibeeking.found.cop.service.common.query.MsgKnowledgePageQuery;
import com.ibeeking.found.cop.service.common.query.MsgKnowledgeQuery;
import com.ibeeking.found.cop.service.common.vo.MsgKnowledgeVO;

import java.util.List;

public interface IMsgKnowledgeService {

    /***
     * 查询列表
     */
    List<MsgKnowledgeVO> list(MsgKnowledgeQuery query);

    /***
     * 分页查询
     */
    Page<MsgKnowledgeVO> pageList(MsgKnowledgePageQuery pageQuery);

    /***
     * 新增
     */
    Boolean add(MsgKnowledgeParam param);

    /***
     * 修改
     */
    Boolean modify(MsgKnowledgeParam param);

    /***
     * 通过id查询
     */
    MsgKnowledgeVO view(Long id);

    Integer summaryCount(Long groupId);
    /***
     * 修改状态
     */
    Boolean changeStatus(Long id, Integer status);


    /***
     * 通过id删除
     */
    Boolean del(Long id);

}
